function [ModelLink, scale] = getModelLink(model_path)
rn = 10;
ModelLink = cell(rn, 2);

train_file = strtrim(fileread(fullfile(fileparts(model_path), 'train.txt')));
train_path = fileparts(train_file);
while true
    st_file = fullfile(train_path, 'st.mat');
    if exist(st_file, 'file') ~= 2, break; end
    
    st = importdata(st_file);
    if ~isfield(st, 'net_file') || ~isfield(st, 'net_weights')
        break
    end
    ModelLink(rn, :) = {st.net_file, st.net_weights};
    rn = rn - 1;
    train_path = fileparts(train_path);
end
ModelLink = ModelLink(rn+1 : end, :);

scale = st.Patch.scales;
